<?php
/**
 * @Notes:【】
 * @Date: 2022-06-03 1:28
 */

namespace Yj\Generator\Core\Common\Template;

use Yj\Generator\Core\Common\RenderableTemplate;

class UseClassTemplate extends RenderableTemplate
{
    protected $name;

    /**
     * PHPClassUse constructor.
     * @param string $name
     */
    public function __construct($name)
    {
        $this->name = $name;
    }

    /**
     * {@inheritDoc}
     */
    public function toLines()
    {
        return sprintf('use %s;', $this->name);
    }

}